#pragma once

#include <boostext/smart_ptr.hpp>
#include <engine.ui/Glyph.hpp>




class AdvancedGlyph : public Glyph
{
private:

	QString   m_fileName;
	QImage    m_image;

public:

	AdvancedGlyph(QString fileName);
	AdvancedGlyph(QDomElement element, QDir path);



	QImage image() const;
	QString fileName() const;



	void setName(QString name);
	void setPos(int2 pos);

	QDomElement domElement(QDomDocument& document) const;
	void setAttributes(QDomElement& element) const;
};
///////////////////////////////////////////////////////////////////////////////////////////////////

DEFINE_LOOSE_PTR(AdvancedGlyph);
